package ubadb.core.components.bufferManager.bufferPool.replacementStrategies.LRU;

import ubadb.core.common.Page;
import ubadb.core.components.bufferManager.bufferPool.BufferFrame;
import ubadb.core.exceptions.BufferFrameException;
import java.util.Date;


public class LRUBufferFrame extends BufferFrame{
	private Date PDate;
	
	public LRUBufferFrame(Page page){
		super(page);
		this.PDate = new Date();
	}
	public Date getPDate() {
		return PDate;
	}

	public void pin() {
		PDate = new Date(); 		//actualizo la fecha de pin
		super.pin();
	}

	public void unpin() throws BufferFrameException {
		PDate = new Date();			//actualizo la fecha de pin aca tambien ????
		super.unpin();	
		}
}


